package com.hkd.product_service.api.fallback;

import com.hkd.common.api.BaseFallBack;
import com.hkd.common.api.BaseFallbackFactory;
import com.hkd.product_service.api.ProductPicInfoService;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HKD
 * @date 2022/9/17 21:58
 */
@RestController
public class ProductPicInfoServiceImplFallback extends BaseFallbackFactory<ProductPicInfoService> {

    @Override
    public ProductPicInfoService create(Throwable throwable) {
        FeignFallback fallback = new FeignFallback();
        fallback.setCause(throwable);
        return fallback;
    }
    public class FeignFallback extends BaseFallBack implements ProductPicInfoService {
    }
}
